/*FILE UPDATE INFO**************************************************************
 * Author   : PURESUN
 * Update   : 2024-03-23
 * Info     : serial port communication library
 * Version  : 1.0.0
 ******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __COMMUNICATION_H__
#define __COMMUNICATION_H__

/* Includes ------------------------------------------------------------------*/
#include "puresun_type.h"

/* Exported macro ------------------------------------------------------------*/

/* Exported typedef ----------------------------------------------------------*/
typedef void (*com_receive_cb_t)(uint8_t *data, uint16_t len);

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/

/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
void com_init(com_receive_cb_t cb);

#endif /* __COMMUNICATION_H__ */

/************************ (C) COPYRIGHT PURESUN *****END OF FILE***************/
